package cn.rknn.iot.entity.iot;

import java.time.LocalDateTime;

public class Product {

    private Long id;

    private Long userId;

    private String name;

    private String key;

    private String img;

    private String secret;

    /**
    * 0: 直连设备
    * 1: 网关设备
    * 2：网关子设备
    * 3：视频设备
    */
    private int nodeType;

    private int netType;

    private int deviceCount;

    private String status;

    private Long categoryId;

    private String description;

    /**
     *
     * 设备登录认证方式
     * 1:校验
     * 2:不校验
     */
    private int validateType;

    private String icon;

    /**
     * 公司
     */
    private String conpany;

    /**
     * 型号
     */
    private String model;

    /**
     * 0： 自定义
     * 1: Alink JSON
     * 透传如果是字节需要自己处理大小端问题
     */
    private int DataFormat;

    private String categoryKey;

    private String categoryName;

    private String authType;

    private LocalDateTime createTime;

    /**
     * 乐观锁版本号
     */
    private Long  version;
}
